#!/usr/bin/env ruby

=begin
    rspec example
    install rspec by gem install rspec --remote
    
=end

module Spec_helper
    def print_spec(msg)
        puts msg
    end
end

class Customer
    accessor_list = :name, :company
    
    def initialize(name, company)
        @name, @company = name, company
    end
    
    def to_s
        "Name :: #{@name} - Company :: #{@company}"
    end
end

describe "Customer", "When created" do
    include Spec_helper
    
    before :each do
        @c = Customer.new("John", "GOOG")
    end
    
    it 'should return a valid customer object' do
        @c.should_not be_nil
        print_spec(@c)
    end
end
